<template>
  <div class="category">
    <h3>{{ title }}分类</h3>
    <slot name="slot1">我是一个默认值，当未传入值时默认显示</slot>
    <slot name="slot2">我是一个默认值</slot>
  </div>
</template>

<script>
export default {
    name:"Category",
    props:["title"]
}
</script>

<style>
.category{
    background-color: skyblue;
    width:200px;
    height:200px;
}
h3{
   text-align: center;
   background-color:orange;
}
</style>